#include <stdio.h>
#include <string.h>
int main(void)
{
	int age = 18;
	char name[]={'t','o','m','\0'};
	printf("%c%c%c\n",name[0],name[1],name[2]);
	printf("%s\n",name);
	printf("%ld\n",sizeof(name));
	int nums[]={1,2,3,4,5};
	printf("%ld\n",sizeof(nums)/sizeof(int));

	char name1[]="tom";
	//底层占4个字节，4个长度，显示的时候要减1
	printf("%s\n",name1);
	printf("%ld\n",sizeof(name1));
	char name2[10]="tom";
	printf("%ld\n",sizeof(name2)-1);
	printf("%ld\n",strlen(name2));
	return 0;
}
